## coding=utf-8

## {% extends "base_mako.html" %}
## <%inherit file="base_mako.html"/>




## {% block head %}
<%block name="head">
    <title>News</title>
    <h3>News</h3>
## {% endblock %}
</%block>




## {% block body %}
<%block name="body">

<form class="" method="get" action="">
    <div class="">
        <input class="" type="text" name="keyword" placeholder="" value="${ keyword or '' }">
        <button class="btn btn-default" type="submit">Search</button>
    </div>
</form>

<table class="table table-bordered table-striped">
    <thead>
        <tr>
            <td>ID</td>
            <th>图片</th>
            <th>标题</th>
            <th>来源频道</th>
            <th>详情</th>
            <th>发布时间</th>
        </tr>
    </thead>
    <tbody>
        ## {% for news in page.object_list %}
        % for news in page.object_list:
        <tr>
            ## <td>{{ news.id }}</td>
            <td>${ news.id }</td>
            <td>
                ## <img src="{{ news.img }}" height="120" width="160">
                <img src="${ news.img }" height="120" width="160">
            </td>
            ## <td><a href="{{ news.link }}">{{ news.title }}</a></td>
            <td><a href="${ news.link }">${ news.title }</a></td>
            ## <td>{{ news.source }}<br>{{ news.channel_name }}({{ news.channel_id }})</td>
            <td>${ news.source }<br>${ news.channel_name }(${ news.channel_id })</td>
            ## <td>{{ news.desc }}</td>
            <td>${ news.desc }</td>
            ## <td>{{ news.datetime_publish }}</td>
            <td>${ news.datetime_publish }</td>
        </tr>
        ## {% endfor %}
        % endfor
    </tbody>
</table>

## {% include "pagination_mako.html" %}
<%include file="pagination_mako.html"/>

## {% endblock %}
</%block>
